CreateIndex<T,TKey>(IObservableSource<T>,Expression<Func<T,TKey>>,Boolean,CultureInfo) Method
In This Topic
Creates a new index.
Syntax
'Declaration
Public Function CreateIndex
(Of ,)( _
ByVal As IObservableSource(Of T), _
ByVal As System.Linq.Expressions.Expression(Of Func(Of T,TKey)), _
ByVal As System.Boolean, _
ByVal As System.Globalization.CultureInfo _
) As Index(Of T,TKey)
public Index<T,TKey> CreateIndex<,>(
IObservableSource<T> ,
System.Linq.Expressions.Expression<Func<T,TKey>> ,
System.bool ,
System.Globalization.CultureInfo
)
Parameters
- source
- The collection to be indexed.
- keySelector
- Key selector expression of the index, see KeySelector.
- keyIsUnique
- Specifies whether the key used in this index is a unique key for the indexed collection.
- locale
- Locale information used to compare strings in the index (default: CultureInfo.CurrentCulture).
Type Parameters
- T
- The type of the elements of the collection to index.
- TKey
- The type of the index key.
Return Value
The new index.
See Also